#include "error.h"


void allocationErrorReal(int line, const char *file, const char *function)
{
	const char *fmt = "Failed to allocate memory. %s(); %s:%d\n";
	printf(fmt, function, getFileName(file).c_str(), line);
	Logger::instance()->add(fmt, function, getFileName(file).c_str(), line);
	exit(1);
}
